public class ZhaiZhiJie04
{
    public static void main(String[] args) {
        Student3 stu = new Student3("zhangsan", 30, "qinghua");
        System.out.println(stu.getInfo());
    }
}

abstract class Person3
{
    private String name;
    private int age;
    public Person3(String name, int age)
    {
        this.setName(name);
        this.setAge(age);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    public abstract String getInfo();
}

class Student3 extends Person3
{
    private String school;
    public Student3(String name, int age, String school)
    {
        super(name, age);
        this.setSchool(school);
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getInfo()
    {
        return "name:"+ super.getName() + " age:" + super.getAge() + " school:" + this.getSchool();
    }
}